/*
 * Copyright (C) 2021 ShangHai Quicktron Intelligent Technology Co.,Ltd
 * All Rights Reserved.
 * 本软件为上海快仓智能科技开发研制。未经本公司正式书面同意，其他任何个人、团体
 * 不得使用、复制、修改或发布本软件.
 * 版权所有 翻版必究
 */

package ATOPSTD;

/*
 * TagRcvMsg.java
 *
 * Created on 2006��11��7��, ����3:18
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */


import java.util.Arrays;
import java.util.Objects;

public class TagRcvMsg {

    public int gwid = 0;
    public short nodeaddr = 0;
    public short subcmd = 0;
    public short msgtype = 0;
    public byte[] data = new byte[250];
    public short datacnt = 0;
    public short bufferindex = 0;
    public short arrowindex = 0;
    public byte[] uid = new byte[200];
    public TagRcvMsg() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TagRcvMsg tagRcvMsg = (TagRcvMsg) o;
        return gwid == tagRcvMsg.gwid && nodeaddr == tagRcvMsg.nodeaddr && subcmd == tagRcvMsg.subcmd && msgtype == tagRcvMsg.msgtype && datacnt == tagRcvMsg.datacnt && bufferindex == tagRcvMsg.bufferindex && arrowindex == tagRcvMsg.arrowindex && Arrays.equals(data, tagRcvMsg.data) && Arrays.equals(uid, tagRcvMsg.uid);
    }

    @Override
    public int hashCode() {
        int result = Objects.hash(gwid, nodeaddr, subcmd, msgtype, datacnt, bufferindex, arrowindex);
        result = 31 * result + Arrays.hashCode(data);
        result = 31 * result + Arrays.hashCode(uid);
        return result;
    }
}
